// 根据不同的操作来访问不同的路由

const express = require('express');

const student = require('./routes/student');
const teacher = require('./routes/teacher');
const paper = require('./routes/paper');
const topic = require('./routes/topic');

const port = 8080;
const app = express();

app.use('/student', student);
app.use('/teacher', teacher);
app.use('/paper', paper);
app.use('/topic', topic);


app.listen(port, () => {
    console.log(__filename, '启动');
});